<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <title>Data-Table 表格</title>
    <link rel="stylesheet" href="../../frame/layui/css/layui.css">
    <link rel="stylesheet" href="../../frame/static/css/style.css">
    <link rel="stylesheet" href="../../css/common.css">
    <link rel="stylesheet" href="../../css/message/modelEdit.css">
</head>
<body>
<div class="layui-col-md12">
    <form class="layui-form" url="admin/user/userset" id="ajaxForm" method="post">
        <input type="hidden" id="ids" value="" name="uid">
        <div class="layui-form vip">
            <div class="layui-form-item layui-form-text">
                <div class="layui-form-item">
        			<label class="layui-form-label">vip等级</label>
        			<select name="vip" style="display:block;width: 173px" >
        			    <option  value="0">普通用户</option>
        			    <option  value="1">vip</option>
        			    <option  value="2">svip</option>
        			</select>
    			</div>
            </div>
        </div>
        <div class="layui-form expire" >
            <div class="layui-form-item layui-form-text">
                <div class="layui-form-item">
        			<label class="layui-form-label">期限</label>
        			<select name="expire" style="display:block;width: 173px" >
        			    <option value="-1">....请选择</option>
        			    <option value="15">15天</option>
        			    <option value="30">一个月</option>
        			  	<option value="90">三个月</option>
        			    <option value="180">六个月</option>
        			    <option value="365">十二个月</option>
        			    <option value="0">永久</option>
        			</select>
    			</div>
            </div>
        </div>
        <div class="layui-form">            
            <div class="layui-form-item" style="overflow: hidden;">
                <div class="layui-input-block layui-input-right">
                    <a class="layui-btn" id="ajax-btn">立即提交</a>
                </div>
            </div>
        </div>
    </form>
</div>
<script src="../../js/public/jquery-3.1.1.min.js"></script>
<script src="../../js/layer/layer.js"></script>
<script src="../../js/public/common.js"></script>
<script>
    $(function(){
        let uid = GetQueryString('uid');
      	let vip = GetQueryString('vip');
      	let expire = GetQueryString('expire');
      	$('input[name="uid"]').val(uid);
      	if(vip){
        	$('.expire').remove();
          	$('option[value="'+vip+'"]').attr('selected','selected');
        
        }
      	if(expire){
        	$('.vip').remove();
        }
      	
      	
    })
</script>
</body>
</html>